package main

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	"meican/controllers"
	"meican/models"
)

func init() {
	models.Init()
}

func main() {

	if beego.AppConfig.String("dev") == "dev" {
		orm.Debug = true
	}
	//临时订单
	beego.Router("/order/tmp", &controllers.OrdertmpController{}, "*:Index")
	beego.Router("/order/order", &controllers.OrdertmpController{}, "*:Order")
	beego.Router("/order/export", &controllers.OrdertmpController{}, "*:Export")
	beego.Run()
}
